package lab02.test29;

public class Test29 {
    public static void main(String[] args) {

        int[] num = new int[3];
        num[0] = 2;
        num[1] = 5;
        num[2] = 9;
        try {
            System.out.println(num[3]);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("数组越界！");
        } finally {
            System.out.println("一定会被执行！");
        }
    }
}
